window.rootPath = (function (src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0, src.lastIndexOf("/") + 1);
})();
layui.config({
    base: rootPath + "lay-module/",
    version: true
}).extend({
    topAdmin: "top/topAdmin", // layuitop后台扩展
    topMenu: "top/topMenu", // layuitop菜单扩展
    topTab: "top/topTab", // layuitop tab扩展
    topTheme: "top/topTheme", // layuitop 主题扩展
    Admin: "admin/Admin", // Admin
    yzn: 'yzn/yzn',
    yznForm: 'yznForm/yznForm',
    yznTable: 'yznTable/yznTable',
    treeGrid: 'treeGrid/treeGrid',
    clipboard: 'clipboard/clipboard',
    notice: 'notice/notice',
    iconPicker: 'iconPicker/iconPicker',
    tableSelect: 'tableSelect/tableSelect',
    ztree: 'ztree/ztree',
    dragsort: 'dragsort/dragsort',
    tagsinput: 'tagsinput/tagsinput',
    xmSelect: 'xmSelect/xm-select',
    selectPage: 'selectPage/selectpage',
    echarts: 'echarts/echarts',
    echartsTheme: 'echarts/echartsTheme',
    citypicker: 'citypicker/city-picker',
    webuploader: 'webuploader/webuploader',
    ueditor: 'ueditor/ueditor.min',
}).use('yznForm');